package edu.xhu.homepage.feign;

import edu.xhu.homepage.service.BiliVideoService;
import edu.xhu.model.common.dtos.ResponseResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.*;

@Api(value = "videoController", tags = "videoController")
@CrossOrigin
@RestController
@RequiredArgsConstructor
@RequestMapping("/bilivideo")
public class VideoController {

    private final BiliVideoService biliVideoService;


    @GetMapping("/videosListApi")
    @ApiOperation("插入评论测试接口")
    public ResponseResult<?> videosListApi() {
        return biliVideoService.videosListApi();
    }

}